import {createSlice} from "@reduxjs/toolkit";


export const slice = createSlice({
    name: 'slice',
    initialState: {
        list:[]
    },
    reducers:{
        getlist:(start,action)=>{
            start.list = action.payload
            return start
        },
       
        
    }
})

export const {getlist} = slice.actions;

export default slice;